﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.PatientDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.PharmacyDomain
{
   public class Drug
    {
        #region Properties
        public Guid ID { get; set; }
        public string Type { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
       [ForeignKey("DrugBrand")]
        public Nullable<Guid> DrugBrandID { get; set; }
       [ForeignKey("DrugGeneric")]
        public Nullable<Guid> DrugGenericID { get; set; }
       [ForeignKey("Dose")]
        public Nullable<Guid> DoseID { get; set; } 
        #endregion

        #region NavigationalProperties
        public virtual DrugBrand DrugBrand { get; set; }
        public virtual DrugGeneric DrugGeneric { get; set; }
        public virtual Dosage Dose { get; set; }

        public virtual ICollection<Medication> Medications { get; set; }
        #endregion


    }
}
